
hello = "hello,吴"
print(hello)
hello = hello[0:3]
print(hello)

print("网站名：{name}, 地址 {url}".format(name="菜鸟教程", url="www.runoob.com"))

# 字典
site = {"name": "菜鸟教程", "url": "www.runoob.com"}
print("网站名：{name}, 地址 {url}".format(**site))

# for
# for letter in 'Python':  # 第一个实例
#     print("当前字母: %s" % letter)

fruits = ['banana', 'apple', 'mango']
for fruit in fruits:  # 第二个实例
    print('当前水果: %s' % fruit)

# string
name = 'python'
end = "on"
print('Hello %s' % name)
# print(f'Hello {name}')
# print(f'{1+2}')
print(name.find(end))

x = 1
print(f'{x + 1}')

# 前后去空
y = " a bc "
print(y)
print(y.strip())
